package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    /**
     * 查询所有护理等级
     *
     * @return
     */
    List<NursingLevelVo> selectAllNursingLevel();

    /**
     * 分页条件查询护理等级
     *
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevelVo> queryPage(@Param("name") String name, @Param("status") Integer status);

    /**
     * 根据id查询护理等级
     *
     * @param id
     * @return
     */
    NursingLevelVo selectNursingLevelById(Integer id);

    /**
     * 新增护理等级
     *
     * @param nursingLevel
     */
    void insterNursingLevel(NursingLevel nursingLevel);

    /**
     * 修改护理等级
     *
     * @param nursingLevel
     */
    void updateNursingLevel(NursingLevel nursingLevel);

    /**
     * 根据id删除护理等级
     *
     * @param id
     */
    void deleteNursingLevelById(Integer id);

    /**
     * 启用禁用护理等级
     *
     * @param id
     * @param status
     */
    void updateNursingLevelStatusById(@Param("id") Integer id, @Param("status") Integer status);
}
